'''
Created on 20/05/2012

@author: guilherme
'''

class Projection(object):
    base_sql = "SELECT %s FROM %s"
    

    def __init__(self, fields, table):
        self.table = table
        self.fields = ', '.join(fields)
    
    def getSQL(self):
        return self.base_sql % (self.fields, self.table) 